feat: Add Copy Button to Documentation Code Snippets (#1842) #1898
+708
−542
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds a “Copy” button to all code snippets in the documentation (index.html), allowing users to copy code examples and commands with a single click.
The feature improves usability and reduces the chance of errors when copying commands manually.
All changes are contained within index.html, with inline CSS and JavaScript — no external files were modified.
Key Changes
Added a <style> block in the to style the copy button (positioning, hover effects, and success state).
Added a <script> block before the closing tag that:
Detects all